package com.smfx.yxt.common.enums;

public enum CoachStatus {

	COACHED("000", "已辅导"),
	COACHING("001", "待辅导"),
	COACH_NO("002", "无需辅导");
	
	private final String code;
	
	private final String desc;
	
	private CoachStatus(String code, String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(String code) {
		for(CoachStatus status : CoachStatus.values()) {
			if(status.getCode().equals(code)) {
				return status.getDesc();
			}
		}
		return null;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
}
